function open_print_doc()

% This file is used by 'html/print_doc_index.html' to open up a pdf file.

% MODIFIED BY: loafellin
% VERSION    : 2012-Mar-22

p = mfilename('fullpath');
[ppath, name, ext] = fileparts(p);
docURL = [char(39), ppath, filesep, 'doc', filesep, ...
  'Google Earth Toolbox tutorial.pdf', char(39)];

if ispc
    eval(['winopen(',docURL,')'])
else
    disp(['Focus will be returned to MATLAB after closing' ...
        char(10) 'the external application.'])
    eval(['[s, cdir] = system(' docURL ');'])
end
